﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kristall.MyGame.Scripts;
using Kristall.Engine;

namespace Kristall.MyGame.Animatables
{
    public class CheckPoint : Animatable
    {
        public CheckPoint()
        {

        }

        public override void LoadContent(Level level)
        {
            AnimatableSprite anim = new AnimatableSprite(@"Sprites\CheckPoint.xnb");
            Animations.Clear();
            Animations.Add(anim);

            CheckPointScript cps = new CheckPointScript();
            Scripts.Clear();
            Scripts.Add(cps);

            base.LoadContent(level);

            this.CheckPlayerCollision = false;

            anim.FrameWidth = 50;
            anim.FrameHeight = 100;
            Width = 50;
            Height = 100;
            
            CurrentAnimationKey = @"Sprites\CheckPoint.xnb";
        }
    }
}
